package com.express.service.impl;

import com.express.core.mapper.AddressMapper;
import com.express.entity.Address;
import com.express.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AddressServiceImpl implements IAddressService {

    @Autowired
    AddressMapper mapper;


    @Override
    public List<Address> query(Map map) {
        return mapper.query(map);
    }

    @Override
    public int save(Address address) {
        return mapper.save(address);
    }

    @Override
    public int deleteByIds(int[] ids) {
        return mapper.deleteByIds(ids);
    }

    @Override
    public int delete(Address address) {
        return mapper.delete(address);
    }

    @Override
    public int update(Address address) {
        return mapper.update(address);
    }

    @Override
    public int invalid(int id) {
        return mapper.invalidAddress(id);
    }
}
